<template>
  <div class="feedback">
    <mt-header title="意见反馈" fixed>
      <router-link to="/" slot="left">
        <mt-button icon="back"></mt-button>
      </router-link>
    </mt-header>
    <div class="zndz">
      <svg slot="icon" class="icon" aria-hidden="true">
        <use xlink:href="#icon-nurse"></use>
      </svg>
      <div class="askingbox">
        <p>您好，请在下方输入您想反馈的意见</p>
        <svg slot="icon" class="icon" aria-hidden="true">
          <use xlink:href="#icon-heartbeat"></use>
        </svg>
      </div>
    </div>
    <textarea v-model="fbtxt" placeholder="请点击输入您的宝贵意见，请控制在200字以内"></textarea>
    <mt-tabbar fixed>
      <button class="ok" @click="feedback">确定</button>
    </mt-tabbar>
  </div>
</template>

<script>
  export default {
    name: 'main',
    data () {
      return {
          fbtxt:""
      }
    },
    methods: {
      feedback(){
        if(fbtxt.length<1){
          Toast('请输入反馈内容再提交')
        }else{
          Toast({
            message: '提交成功',
            iconClass: 'iconfont icon-msnui-success'
          });
          setTimeout(function(){
            router.push('/')
          },2500)
        }
      }
    },
    computed: {

    },
  }
</script>

